package com.lovo.project.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;


/**
 * @title  商品实体类
 * @author chenqiang
 * @date   2020/11/2 13:55
 */
@Data
public class ProductDO implements Serializable {
    /**商品编号*/
    private Integer productId;
    /**商品名称*/
    private String  productName;
    /**商品品类*/
    private String  productClass;
    /**材质或者制作方法*/
    private String  productMaterialQuality;
    /**适用规格*/
    private String  productCuttingSpecification;
    /**专属规格*/
    private String  productExclusiveSpecification;
    /**包装规格*/
    private String  productPackageSpecification;
    /**口味*/
    private String  productFlavor;
    /**特殊功用*/
    private String  productPurpose;
    /**产地*/
    private String  productAddress;
    /**生产日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date productProductionDate;
    /**保质期*/
    private String  productQualityGuaranteePeriod;
    /**供应商*/
    private String  productSupplier;
    /**特色说明*/
    private String  productTip;
    /**价格*/
    private Integer productMoney;
    /**商品图片路径*/
    private String  productImage;
    /**店铺id*/
    private Integer shopId;

    public ProductDO(){}
    public ProductDO(String productName, String productClass, String productMaterialQuality, String productCuttingSpecification, String productExclusiveSpecification, String productPackageSpecification, String productFlavor, String productPurpose, String productAddress, Date productProductionDate, String productQualityGuaranteePeriod, String productSupplier, String productTip, Integer productMoney, String productImage, Integer shopId) {
        this.productName = productName;
        this.productClass = productClass;
        this.productMaterialQuality = productMaterialQuality;
        this.productCuttingSpecification = productCuttingSpecification;
        this.productExclusiveSpecification = productExclusiveSpecification;
        this.productPackageSpecification = productPackageSpecification;
        this.productFlavor = productFlavor;
        this.productPurpose = productPurpose;
        this.productAddress = productAddress;
        this.productProductionDate = productProductionDate;
        this.productQualityGuaranteePeriod = productQualityGuaranteePeriod;
        this.productSupplier = productSupplier;
        this.productTip = productTip;
        this.productMoney = productMoney;
        this.productImage = productImage;
        this.shopId = shopId;
    }
}
